package com.woniu.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-06
 */
@TableName("cms_content")
public class CmsContent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "content_id", type = IdType.AUTO)
    private Integer contentId;

    private Integer typeId;

    @TableField(exist = false)
    private  CmsType cmsType;

    private String contentTitle;

    private String contentText;

    private String createBy;

    private Date createTime;

    public Integer getContentId() {
        return contentId;
    }

    public void setContentId(Integer contentId) {
        this.contentId = contentId;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public String getContentTitle() {
        return contentTitle;
    }

    public void setContentTitle(String contentTitle) {
        this.contentTitle = contentTitle;
    }
    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public CmsType getCmsType() {
        return cmsType;
    }

    public void setCmsType(CmsType cmsType) {
        this.cmsType = cmsType;
    }

    @Override
    public String toString() {
        return "CmsContent{" +
                "contentId=" + contentId +
                ", typeId=" + typeId +
                ", cmsType=" + cmsType +
                ", contentTitle='" + contentTitle + '\'' +
                ", contentText='" + contentText + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
